package com.wavehi.servlet;

import javax.servlet.*;
import java.io.IOException;

/**
 * @Author WaveHi
 * @Date 13/9/2021 上午 10:24
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class MyFirstServlet implements Servlet {
    public MyFirstServlet() {
        System.out.println("MyFirstServlet have being made!");
    }
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("Init completed!");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("I have get the request of client");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("The run of MyFirstServlet stop.");
    }
}
